//
//  UIViewController+SpecialPresent.m
//  MengLiao
//
//  Created by xiuxin on 2022/7/15.
//  Copyright © 2022 BaseBusiness. All rights reserved.
//
#import "UIViewController+SpecialPresent.h"
#import "THDeBugTool.h"
@implementation UIViewController (SpecialPresent)

//+ (void)load{
//    if (@available(iOS 13.0, *)) {
//     static dispatch_once_t onceToken;
//     dispatch_once(&onceToken, ^{
//         ExchangeImplementationsInTwoClasses([UIViewController class], @selector(presentViewController:animated:completion:), [UIViewController class], @selector(zh_presentViewController:animated:completion:));
//     });
//    }
//}
//- (void)zh_presentViewController:(UIViewController *)viewControllerToPresent animated: (BOOL)flag completion:(void (^ __nullable)(void))completion {
//    if ([viewControllerToPresent isKindOfClass:NSClassFromString(@"JVNavigationController")] && [self isKindOfClass:NSClassFromString(@"HQLoginJVViewController")]){
//        viewControllerToPresent.modalPresentationStyle = UIModalPresentationOverCurrentContext;
//    } else if (@available(iOS 13.0, *)) {
//        viewControllerToPresent.modalPresentationStyle = UIModalPresentationFullScreen;
//    }
//    [self zh_presentViewController:viewControllerToPresent animated:flag completion:completion];
//}
@end
